package com.zzy.database.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

public class transaction {
    private String log_id;
    private int account_id;
    private double amount;
    private String type;
    private Date date;
    private int dest_account_id;


    public transaction() {
    }

    public transaction(String log_id, int account_id, double amount, String type, Date date, int dest_account_id) {
        this.log_id = log_id;
        this.account_id = account_id;
        this.amount = amount;
        this.type = type;
        this.date = date;
        this.dest_account_id = dest_account_id;
    }

    /**
     * 获取
     * @return log_id
     */
    public String getLog_id() {
        return log_id;
    }

    /**
     * 设置
     * @param log_id
     */
    public void setLog_id(String log_id) {
        this.log_id = log_id;
    }

    /**
     * 获取
     * @return account_id
     */
    public int getAccount_id() {
        return account_id;
    }

    /**
     * 设置
     * @param account_id
     */
    public void setAccount_id(int account_id) {
        this.account_id = account_id;
    }

    /**
     * 获取
     * @return amount
     */
    public double getAmount() {
        return amount;
    }

    /**
     * 设置
     * @param amount
     */
    public void setAmount(double amount) {
        this.amount = amount;
    }

    /**
     * 获取
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取
     * @return date
     */
    public Date getDate() {
        return date;
    }

    /**
     * 设置
     * @param date
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * 获取
     * @return dest_account_id
     */
    public int getDest_account_id() {
        return dest_account_id;
    }

    /**
     * 设置
     * @param dest_account_id
     */
    public void setDest_account_id(int dest_account_id) {
        this.dest_account_id = dest_account_id;
    }

    public String toString() {
        return "transaction{log_id = " + log_id + ", account_id = " + account_id + ", amount = " + amount + ", type = " + type + ", date = " + date + ", dest_account_id = " + dest_account_id + "}";
    }
}
